#if !defined(AFX_DVIDEODLG_H__B0DF726E_4025_43D6_AF9F_105EF594365A__INCLUDED_)
#define AFX_DVIDEODLG_H__B0DF726E_4025_43D6_AF9F_105EF594365A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DVideoDlg.h : header file
//
#include "resource.h"

/////////////////////////////////////////////////////////////////////////////
// DVideoDlg dialog
#include "wmpplayer4.h"
#include "wmpcontrols.h"
#include "wmpmedia.h"
#include "DVideoControl.h"
class DVideoDlg : public CDialog
{
// Construction
public:
	DVideoDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(DVideoDlg)
	enum { IDD = IDD_DLG_DVIDEO };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
	CString m_path;
	CString m_filename;
	CWMPPlayer4 * cmw;
	int m_hasload;
    void initWMP();
	void initSDVIDEO();
    void wmpPlay();
	void wmpStop();
	void wmpPause();
	void wmpFW();
	void wmpBW();
	void wmpSetPos(double ipos);
	void wmpgetStaus();
	void wmpStatusChange();
	void wmpUIThread();
	DVideoControl * tmp_dvc;
//	double  m_totalLth;
//	CString  m_totalstr;
//	double  m_curpos;
	HANDLE UiThreadHandle;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(DVideoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(DVideoDlg)
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DVIDEODLG_H__B0DF726E_4025_43D6_AF9F_105EF594365A__INCLUDED_)
